package com.my.study.io.print;

import java.io.IOException;
import java.io.PrintStream;

/**
 * @author Carlos
 * @version 1.0
 * @Description 字节打印流
 * @date 2021/6/27 12:33
 **/
public class PrintStreamTest {

    public static void main(String[] args) throws IOException {

        PrintStream printStream = System.out;
        printStream.print("Hello");
        printStream.close();

        System.setOut(new PrintStream("D:/file/system.txt"));
        System.out.println("Hi!易都军数据集");
    }

}
